package com.ljn.mapper;

import com.ljn.core.dto.Admin;
import com.ljn.core.dto.Project;
import com.ljn.core.dto.common.command.projectcommand.QueryProCommand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AdminMapper {

    int deleteByPrimaryKey(String id);

    int insert(Admin record);

    int updateByPrimaryKeySelective(Admin record);

    boolean updateStauts(@Param("command") QueryProCommand proCommand,@Param(value = "status") boolean status);

    int updateByPrimaryKey(Admin record);

    int getCountByCondition(@Param(value = "status") boolean status);

    List<Project> pageByCondition(@Param("pageStart")long pageIndex, @Param("pageSize") int pageSize, @Param("status")boolean status);
}